Part Number Hot Search : 
215630 1N753 BCX70J E002522 2SC454 XA2C128 CY7C1325 AD7477
Product Description
Full Text Search
 

To Download TC9318AFAG Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  TC9318AFAG/afbg 2006-07-27 1 toshiba cmos digital integrated circuit silicon monolithic TC9318AFAG,tc9318afbg single chip dts microcontroller (dts-21) the TC9318AFAG and tc9318afbg are a 4 bit cmos microcontroller for signal chip digital tuning systems. it is capable of functioning at a low voltage of 3 v and features a built-in prescaler of operating 230 mhz, pll and lcd drivers. the cpu has 4 bit parallel addition and subtraction instructions (e.g., ai, si), logic operation instructions (e.g., or, an), composite judging and compare instructions (e.g., tm, sl), and time-base functions. the package is an pin 64, 0.5/0.65-mm-pitch quad flat pack package. in addition to various input/output ports and a dedicated key-input port, which are controlled by powerful input/output instructions (in 1, 2, out 1, 2), there are many dedicated lcd pins, a buzzer port, a 6 bit a/d converter, an if counter, and other pins. low-voltage and low-current consumption make this microcontroller suitable for portable dts equipment. features ? 4 bit microcontroller for digital tuning systems. ? operating voltage v dd = 1.8~3.6 v, with low current consumption because of cmos circuitry (with only cpu operating, when v dd = 3 v, i dd = 80 a max) ? built-in prescaler (1/2 fixed divider +2 modulus prescaler: fmax 230 mhz) ? features built-in 1/3-duty, 1/2-bias lcd drivers and a built-in 3 v booster circuit for the display. ? data memory (ram) and ports are easily backed up. ? program memory (rom): 16 bit 4096 steps ? data memory (ram): 4 bit 256 words ? 60-instruction set (all one-word instructions) ? instruction execution time: 40 s (with 75 khz crystal) (mvgs, dal instructions: 80 s) ? many addition and subtraction instructions (12 types addition, 12 types subtraction) ? powerful composite judging instructions (tmtr, tmfr, tmt, tmf, tmtn, tmfn) ? data can be transmitted between addresses on the same row. (mvsr instruction) ? register indirect transfer available (mvgd, mvgs instruction). ? 16 powerful general registers (located in ram) ? stack levels: 2 ? jump or cal instruction can be used anywhere in the 4096 steps of program memory (rom) as there are no pages or fields. ? 16 bit of any address in the 1024 steps in program memory (rom) can be referenced (dal instruction). ? features independent frequency input pins (fm in and am in ) and two (do1 and do2) phase comparison outputs for fm/vhf and am. ? seven reference frequencies can be selected by program. ? powerful input/output instructions (in 1, 2, out 1, 2) ? dedicated input ports (k 0 ~k 3 ) for key input. 26 lcd drive pins (69 segments maximum) available. ? 17 i/o ports: 10 with input/output programmable in 1 bit units, and 7 output-only port. the 2 if in , and do1 pins can be switched by instruction to in (input-only) or ot (output-only). ? three back-up modes available by instruction: only cpu operation, crystal oscillation only, clock stop. TC9318AFAG tc9318afbg weight p-lqfp64-1010-0.50e: 0.32 g (typ.) p-lqfp64-1212-0.65a: 0.45 g (typ.)
TC9318AFAG/afbg 2006-07-27 2 ? features a built-in 2 hz timer f/f and a built-in 10/100 hz interval pulse output (internal port for time base). ? allows pll lock status detection. ? 8 of the lcd segment outputs (s 16 ~s 23 ) can also operate as key return timing outputs (kr 0 ~kr 7 ). the i/o ports are not dedicated key return timing outputs but can have other uses as well. ? built-in 20 bit, general-purpose if counter can detect stations during auto-tuning by counting the intermediate frequencies of each band. ? built-in 8 bit buzzer output circuit can produce 254 different tone signals. ? features a built-in 2-channel, 6 bit a/d converter. ? to prevent cpu malfunctions, a built-in supply voltage drop detection circuit shuts down the cpu when voltage falls below 1.5 v. pin assignment (top view)
TC9318AFAG/afbg 2006-07-27 3 block diagram
TC9318AFAG/afbg 2006-07-27 4 explanation of function pin no. symbol pin name function and operation remarks 1 com1 2 com2 3 com3 lcd common output output common signals to the lcd panel. through a matrix with pins s 1 ~s 23 , a maximum of 69 segments can be displayed. three levels, v lcd , v ee , and gnd, are output at 83 hz every 2 ms. v ee is output after system reset and clock stop are released, and a common signal is output after the disp off bit is set to ?0?. 4~18 s 1 ~s 15 lcd segment output 19~26 s 16 /kr 7 ~ s 23 /kr 0 lcd segment output/key return timing output segment signal output pins for the lcd panel. together with com1, com2, and com3, a matrix is formed that can display a maximum of 69 segments. the signals for the key matrix and the segment signals from pins s 16 /kr 7 ~s 23 /kr 0 are output on a time division basis. 4 8 = 32 key matrix can be created in conjunction with key input ports k 0 ~k 3 . 27~30 k 0 ~k 3 key input ports 4 bit input ports for key matrix input. combined in a matrix with key return timing outputs of the lcd segment pins, data from a maximum of 4 8 = 32 keys can be input and pins are pulled up. on the key seteutining output pins, data from 4 6 = 24 keys can be input and pins are pulled down. the wait mode is released when high level is applied to key input ports set to pull-down. 31~36 t 0 ~t 5 key return timing output port these ports output the timing signal for key matrix. to form the key matrix, load resistance has been built-in the n-channel side. when the key matrix combined with push-key, that does not need a key matrix diode. 37~40 p1-0~p1-3 i/o port 1 the input and output of these 4 bit i/o ports can be programmed in 1 bit units. by altering the input to i/o ports set to input, the clock stop and wait modes can be released, and the mute bit of the mute pin can be set to ?1?.
TC9318AFAG/afbg 2006-07-27 5 pin no. symbol pin name function and operation remarks 41~44 p2-0 p2-1/ad in1 p2-2/ad in2 p2-3/ dc-ref i/o port 2 /ad analog voltage input /ad analog voltage input /reference voltage input 4 bit i/o ports. input and output may be programmed in 1 bit units. pins p2-1 through p2-2 can also be used for analog input to the built-in 6 bit, 2-channel a/d converter. conversion time of the built-in a/d converter using the successive comparison method is 280 s. the necessary pin can be programmed to ad analog input in 1 bit units, and p2-3 can be set to the reference voltage input. internal power supply (v dd ) or constant voltage (v ee ) can be used as the reference voltage. in addition, constant voltage (v ee ) can be input to the ad analog input so battery voltage, etc., can be easily detected. the reference voltage input, for which a built-in operational amp is used, has high impedance. the a/d converter, and their control are all executed by program. 45~46 p3-0 p3-1/buzr i/o port 3 /buzzer output 2 bit i/o ports, whose input/output can be programmed in 1 bit units. the p3-1 pin also functions as the output for the built-in buzzer circuit. the buzzer sound can be output in 254 different tones between 18.75 khz and 147 hz, and at a duty of 50%. the buzzer output, and all associated controls can be programmed. 47 mute muting output port 1 bit output port. normally, this port is used for muting control signal output. this pin can set the internal mute bit to ?1? according to a change in the input of i/o port 1. mute bit output logic can be changed; pll phase difference can also be output using this pin. 48 test test mode control input input pin used for controlling test mode. high level indicates test mode, while low level indicates normal operation. the pin is normally used at low level or no-connection (nc). (a pull-down resistor is built-in).
TC9318AFAG/afbg 2006-07-27 6 pin no. symbol pin name function and operation remarks 49 hold hold mode control input input pin for request/release hold mode. normally, this pin is used to input radio mode selection signals or battery detection signals. hold mode includes clock stop mode (stops crystal oscillation) and wait mode (halts cpu). setting is implemented with the ckstp instruction or the wait instruction. when the ckstp instruction is executed, request/release of the hold mode depends on the internal mode bit. if the mode bit is ?0? (mode-0), executing the ckstp instruction while the hold pin is at low level stops the clock generator and the cpu and changes to memory back-up mode. if the mode bit is ?1? (mode-1), executing the ckstp instruction enters memory back-up mode regardless of the level of the hold pin. memory back-up is released when the hold pin goes high in mode-0, or when the level of the hold pin level in mode-1. when memory back-up mode is entered by executing a wait instruction, any change in the hold pin input releases the mode. in memory back-up mode, current consumption is low (below 10 a), and all the output pins (e.g., display output, output ports) are automatically set to low level. 50 if in /in if signal input/input port if counter?s if signal input pin for counting the if signals of the fm and am bands and detecting the automatic stop position. the input frequency is between 0.35~12 mhz (0.2 v p-p (min)). a built-in input amp and c coupling allow operation at low-level input. the if counter is a 20 bit counter with optional gate times of 1, 4, 16, and 64 ms. 20 bits of data can be readily stored in memory. this input pin can be programmed for use as an input port (in port). cmos input is used when the pin is set as an in port. 51 52 do1/ot do2 phase comparison output/output port phase comparison output pll?s phase comparison tri-state output pins. when the programmable counter?s prescaler output is higher than the reference frequency, output is at high level. when output is lower than the reference frequency, output is at low level. when output equals the reference frequency, high impedance output is obtained. because do1 and do2 are output in parallel, optimal filter constants can be designed for the fm/vhf and am bands. pin do1 can be programmed to high impedance or programmed as an output port (ot). thus, the pins can be used to improve lock-up time or used as output ports.
TC9318AFAG/afbg 2006-07-27 7 pin no. symbol pin name function and operation remarks 56 v dd 53 gnd power-supply pins pins to which power is applied. normally, v dd = 1.8~3.6 v (3.0 v typ.) is applied. in back-up mode (when ckstp instructions are being executed), voltage can be lowered to 1.0 v. if voltage falls below 1.5 v while the cpu is operating, the cpu stops to prevent malfunction (stop mode). when the voltage rises above 1.5 v, the cpu restarts. stop mode can be detected by checking the stop f/f bit. if necessary, execute initialization or adjust clock by program. when detecting or preventing cpu malfunctions using an external circuit, stop mode can be invalidated and rendered non-operative by program. in that case, all four bits of the internal test port should be set to ?1?. if more than 1.8 v is applied when the pin voltage is 0, the device's system is reset and the program starts from address ?0?. (power on reset) note: to operate the power on reset, the power supply should start up in 10~100 ms. 54 fm in fm programmable counter input programmable counter input pin for fm, vhf band. the 1/2 + pulse swallow system (vhf mode) and the pulse swallow system (fm mode) are selectable freely by program. at the vhf mode, local oscillation output (vco output) of 50~230 mhz (0.2v p-p (min)) is input and fm mode, 40~130 mhz (0.2v p-p (min)) is input. a built-in input amp and c coupling allow operation at low-level input. note: when in the pll off mode or when set to am in input, the input is pulled down. 55 am in am local oscillator signal input programmable counter input pin for am band. the pulse swallow system (hf mode) and direct dividing system (lf mode) are freely selectable by program. at the hf mode, local oscillation output (vco output) of 1~45 mhz (0.2 v p-p (min)) is input and lf mode, 0.5~12 mhz (0.2 v p-p (min)) is input. built-in input amp operates with low-level input using a c coupling. note: when in pll off mode or when set to fm in input, the input is pulled down. 57 reset reset input input pin for system reset signals. reset takes place while at low level; at high level, the program starts from address ?0?. normally, if more than 1.8 v is supplied to v dd when the voltage is 0, the system is reset (power on reset). accordingly, this pin should be set to high level during operation.
TC9318AFAG/afbg 2006-07-27 8 pin no. symbol pin name function and operation remarks 58 x out 59 x in 60 v xt crystal oscillator pins crystal oscillator pins. a reference 75 khz crystal oscillator is connected to the x in and x out pins. the oscillator stops oscillating during ckstp instruction execution. the v xt pin is the power supply for the crystal oscillator. a stabilizing capacitor (0.47 f typ.) is connected. 61 v lcd 62 c 1 63 c 2 voltage doubler boosting pin voltage doubler boosting pin for driving the lcd. a capacitor (0.1 f typ.) is connected to boost the voltage. the v lcd pin outputs voltage (3.0 v), which has been doubled from the constant voltage (v ee : 1.5 v) using the capacitors connected between c 1 and c 2 . that potential is supplied to the lcd drivers. if the internal v lcd off bit is set to ?1? by program, an external power supply can be input through the v lcd pin to drive the lcd. at this time, the v lcd /2 potential, whose v lcd voltage is divided using registers, is output from the c 2 pin. 64 v ee constant voltage supply pin 1.5 v constant voltage supply pin for driving the lcd. a stabilizing capacitor (0.1 f typ.) is connected. this is a reference voltage for the a/d converter, key input, and the lcd common output?s bias potential. ? note 1: when the device is reset (voltage higher than 1.8 v, or when reset = low high) i/o ports are set to input, the pins for i/o ports and additional functions (e.g., a/d converter) are set to i/o port input pins, while the if in /in pins become if input pins. note 2: when in pll off mode (when the three bits in the internal reference ports all show ?1?), the if in and fm in , am in pins are pulled down, and do1 and do2 are at high impedance. note 3: when in clock stop mode (during execution of ckstp instruction), the output ports and the lcd output pins are all at low level, while the constant voltage circuit (v ee ), the voltage doubler circuit (v lcd ), and the power supply for the crystal oscillator (v xt ) are all off. note 4: when the device is being reset, the contents of the output ports and internal ports are undefined and initialization by program is necessary.
TC9318AFAG/afbg 2006-07-27 9 explanation of operation cpu cpu is composed of program counter, stack register, alu, program memory, data memory, g-register, carry f/f and judging circuit. 1. program counter (pc) program counter is a block to designate the address of program memory (rom), and is composed of 12 bits binary up counter. this is cleared by system reset, and the program starts from zero address. usually, it?s increment is made one by one everytime the one instruction is executed, but when jump instruction or cal instruction is executed, the address designated at operand part of that instruction is loaded. further, when the instruction (ais, slti, tmt, rns instructions, etc.) having skip function is executed, two increments of program counter is made if the result is the condition to be skipped, and the succeeding instruction is skipped. 2. stack register (stack) this is a register composed of 2 12 bits during the execution of subroutine call instruction, the value obtained by adding + 1 to the content of program counter, namely return address, is housed. the content of stack register is loaded on the program counter by the execution of return instruction. (rn, rns instructions) this stack level is 2 level, and nesting is 2 level. 3. alu alu has binary 4 bits parallel addition and subtraction, logical operation, comparison and plural bit judge functions. this cpu has no accumulator, and all operations directly treat the contents of data memory. 4. program memory (rom) program memory is composed of 16 bit 4096 steps and is the address of 000h~fffh. program memory has no concept of page or field, so jump instruction and cal instruction can be freely used among 4096 steps. further, it is possible to use optional address of program memory as data area, and its content, 16 bits, can be loaded to the data register by executing dal instruction. note 5: provide the data area at the address outside the program loop in the program memory. note 6: in dal instruction, the address of program memory can be designated as the data area becomes 1024 steps of 000h~3ffh.
TC9318AFAG/afbg 2006-07-27 10 5. data memory (ram) data memory is composed of 4 bit 256 words and used for storing data. this 256 words are expressed with row address (4 bits) and column address (4 bits). 192 words (row address = 4h~fh) among the data memory are indirect addressing by g-register. for this reason, when carrying out data processing within this territory, it is necessary to designate row address by g-register beforehand area of 00h~0fh address in data memory is called general register, and can be used only by designating column address (4 bits). these 16 general registers can be used for operation and transfer between data memories. further, it can also be used as ordinary data memory. note 7: the column address (4 bits) to designate general register becomes register number of the general register. note 8: it is also possible to indirectly designate all of row address ( = 0h~fh) by g-register. 6. g-register (g-reg.) g-register is a 4 bits register for addressing row address (d r = 4h~fh) of 192 words in data memory. content of this register is effective during executing mvgd instruction, mvgs instruction, and is not related with the execution of other instructions. this register is treated as one of the port, and its content is set by the execution of out1 instruction among input and output instructions. (refer to register port item 1) 7. data register (data reg.) this is a register composed of 1 16 bits. in this register, 16 bits data of optional address among the program memory in 000h~3ffh is loaded during executing of dal instruction. this register is treated as one of the port, and when in1 instruction among input and output instruction is executed, it?s content is read in the data memory in 4 bits unit. (refer to register port item 2)
TC9318AFAG/afbg 2006-07-27 11 8. carry f/f (c ? f/f) this is set when carry or borrow is produced as a result of executing operational instruction, and is reset when it is not produced. content of carry f/f changes only when addition and subtraction instruction is executed, and does not change during the execution of other instructions. 9. judging circuit (j) when a instruction with skip function is executed, this circuit judges it?s skip condition. when skip condition is satisfied, this circuit makes two increments of program counter, and skips the succeeding instruction. it is provided with 29 kinds of instructions having abundant skip function. (refer to item 11, explanation list of function and operation of instructions, * marked instruction) 10. list of instruction set 60 kinds of instruction set are included, all of which consisting of one word instruction. these instructions are expressed with 6 bits instruction code. 00 01 10 11 higher rank 2 bits lower rank 4 bits 0 1 2 3 0000 0 ai m, i ad r, m tmtr r, m slti m, i 0001 1 ais m, i ads r, m tmfr r, m sgei m, i 0010 2 ain m, i adn r, m seq r, m seqi m, i 0011 3 aic m, i ac r, m sne r, m snei m, i 0100 4 aics m, i acs r, m ld r, m tmtn m, n 0101 5 aicn m, i acn r, m st m, r tmt m, n 0110 6 orim m, i orr r, m mvgd r, m tmfn m, n 0111 7 anim m, i andr r, m mvgs m, r tmf m, n 1000 8 si m, i su r, m in1 m, c 1001 9 sis m, i sus r, m in2 m, c 1010 a sin m, i sun r, m ? 1011 b sib m, i sb r, m call addr 1 out1 c, m 1100 c sibs m, i sbs r, m out2 c, m 1101 d sibn m, i sbn r, m ? 1110 e xori m, i xorr r, m dal addr 2 , r 1111 f mvim m, i mvsr m 1 , m 2 jump addr 1 rn, rns, wait ckstp, noop
TC9318AFAG/afbg 2006-07-27 12 11. explanation list of function and operation of instructions (explanation of symbols) m: data memory address normally, one of 00h~3fh address of data memory. r: general register one of 00h~0fh address of data memory. pc: program counter (12 bit) stack: stack register (12 bit) g: g-register (4 bit) data: data register (16 bit) i: immediate data (4 bit) n: bit position (4 bit) ? : all ?0? c: code no. of port (4 bit) c n : code no. of port (4 bit) r n : general register no. (4 bit) addr 1 : program memory address in page 0 or 1 (12 bit) addr 2 : higher rank 6 bit of program memory address in page 0 ca: carry b: borrow in1~in2: port treated during the execution of in1~in2 instruction out1~out2: port treated during the execution of out1~out2 instruction ( ): register or data memory content [ ] c : content of port indicated by code no. c (4 bit) [ ]: content of data memory indicated by the content of register or data memory [ ] p : content of program memory (16 bit) ic: instruction code (6 bit) * : instruction having skip function d c : data memory column address (4 bit) d r : data memory row address (2 bit) p: wait condition
TC9318AFAG/afbg 2006-07-27 13 machine language (16 bit) inst. gr. mnemonic skip function explanation of function explanation of operation ic (6 bit) a (2 bit) b (4 bit) c (4 bit) ai m, i add immediate data to memory m (m) + i 000000 d r d c i ais m, i * add immediate data to memory, then skip if carry m (m) + i skip if carry 000001 d r d c i ain m, i * add immediate data to memory, then skip if not carry m (m) + i skip if not carry 000010 d r d c i aic m, i add immediate data to memory with carry m (m) + i + ca 000011 d r d c i aics m, i * add immediate data to memory with carry, then skip if carry m (m) + i + ca skip if carry 000100 d r d c i aicn m, i * add immediate data to memory with carry, then skip if not carry m (m) + i + ca skip if not carry 000101 d r d c i ad r, m add memory to general register r (r) + (m) 010000 d r d c r n ads r, m * add memory to general register, then skip if carry r (r) + (m) skip if carry 010001 d r d c r n adn r, m * add memory to general register, then skip if not carry r (r) + (m) skip if not carry 010010 d r d c r n ac r, m add memory to general register with carry r (r) + (m) + ca 010011 d r d c r n acs r, m * add memory to general register with carry, then skip if carry r (r) + (m) + ca skip if carry 010100 d r d c r n addition instruction acn r, m * add memory to general register with carry, then skip if not carry r (r) + (m) + ca skip if not carry 010101 d r d c r n
TC9318AFAG/afbg 2006-07-27 14 machine language (16 bit) inst. gr. mnemonic skip function explanation of function explanation of operation ic (6 bit) a (2 bit) b (4 bit) c (4 bit) si m, i subtract immediate data from memory m (m) ? i 001000 d r d c i sis m, i * subtract immediate data from memory, then skip if borrow m (m) ? i skip if borrow 001001 d r d c i sin m, i * subtract immediate data from memory, then skip if not borrow m (m) ? i skip if not borrow 001010 d r d c i sib m, i subtract immediate data from memory with borrow m (m) ? i ? b 001011 d r d c i sibs m, i * subtract immediate data from memory with borrow, then skip if borrow m (m) ? i ? b skip if borrow 001100 d r d c i sibn m, i * subtract immediate data from memory with borrow, then skip if not borrow m (m) ? i ? b skip if not borrow 001101 d r d c i su r, m subtract memory from general register r (r) ? (m) 011000 d r d c r n sus r, m * subtract memory from general register, then skip if borrow r (r) ? (m) skip if borrow 011001 d r d c r n sun r, m * subtract memory from general register, then skip if not borrow r (r) ? (m) skip if not borrow 011010 d r d c r n sb r, m subtract memory from general register with borrow r (r) ? (m) ? b 011011 d r d c r n sbs r, m * subtract memory from general register with borrow, then skip if borrow r (r) ? (m) ? b skip if borrow 011100 d r d c r n subtraction instruction sbn r, m * subtract memory from general register with borrow, then skip if not borrow r (r) ? (m) ? b skip if not borrow 011101 d r d c r n slti m, i * skip if memory is less than immediate data skip if (m) < i 110000 d r d c i sgei m, i * skip if memory is greater than or equal to immediate data skip if (m) > = * skip if memory is equal to immediate data skip if (m) = i 110010 d r d c i snei m, i * skip if memory is not equal to immediate data skip if (m) i 110011 d r d c i seq r, m * skip if general register is equal to memory skip if (r) = (m) 100010 d r d c r n comparison instruction sne r, m * skip if general register is not equal to memory skip if (r) (m) 100011 d r d c r n
TC9318AFAG/afbg 2006-07-27 15 machine language (16 bit) inst. gr. mnemonic skip function explanation of function explanation of operation ic (6 bit) a (2 bit) b (4 bit) c (4 bit) ld r, m load memory to general register r (m) 100100 d r d c r n st m, r store general register to memory m (r) 100101 d r d c r n mvsr m 1 , m 2 move memory to memory in the same row (d r , d c1 ) (d r , d c2 ) 011111 d r d c1 d c2 mvim m, i move immediate data to memory m i 001111 d r d c i mvgd r, m move memory to destination memory referring to g-register and general register [(g), (r)] (m) 100110 d r d c r n transfer instruction mvgs m, r move source memory referring to g-register and general register to memory m [(g), (r)] 100111 d r d c r n in1 m, c input in1 port data to memory m [in1] c 111000 d r d c c n out1 c, m output contents of memory to out1 port [out1] c (m) 111011 d r d c c n in2 m, c input in2 port data to memory m [in2] c 111001 d r d c c n input and output instruction out2 c, m output contents of memory to out2 port [out2] c (m) 111100 d r d c c n orr r, m logical or of general register and memory r (r) (m) 010110 d r d c r n andr r, m logical and of general register and memory r (r) (m) 010111 d r d c r n orim m, i logical or of memory and immediate data m (m) i 000110 d r d c i anim m, i logical and of memory and immediate data m (m) i 000111 d r d c i xorim m, i logical exclusive or of memory and immediate data m (m) i 001110 d r d c i logical operation instruction xorr r, m logical exclusive or of general register and memory r (r) (m) 011110 d r d c r n tmtr r, m * test general register bits by memory bits, then skip if all bits specified are true skip if r [n (m)] = all ?1? 100000 d r d c r n tmfr r, m * test general register bits by memory bits, then skip if all bits specified are false skip if r [n (m)] = all ?0? 100001 d r d c r n tmt m, n * test memory bits, then skip if all bits specified are true skip if m (n) = all ?1" 110101 d r d c n tmf m, n * test memory bits, then skip if all bits specified are false skip if m (n) = all ?0? 110111 d r d c n tmtn m, n * test memory bits, then not skip if all bits specified are true skip if m (n) = not all ?1" 110100 d r d c n bit judge instruction tmfn m, n * test memory bits, then not skip if all bits specified are false skip if m (n) = not all ?0? 110110 d r d c n
TC9318AFAG/afbg 2006-07-27 16 machine language (16 bit) inst. gr. mnemonic skip function explanation of function explanation of operation ic (6 bit) a (2 bit) b (4 bit) c (4 bit) call addr 1 call subroutine stack (pc) + 1 and pc addr 1 1010 addr 1 (12 bit) rn return to main routine pc (stack) 111111 00 ? ? subroutine instruction rns * return to main routine and skip unconditionally pc (stack) and skip 111111 01 ? ? jump inst. jump addr 1 jump to the address specified pc addr 1 1011 addr 1 (12 bit) dal addr 2 , r load program memory in page 0 to data register data [addr 2 + (r)] p in page 0 111110 r n at p = ?0? h, the condition is cpu waiting (soft wait mode) wait p at p = ?1? h, except for clock generator, all function is waiting (hard wait mode) wait at condition p 111111 10 0000 p ckstp clock generator stop stop clock generator at mode condition 111111 10 1000 ? other instruction noop no operation ? 111111 11 ? ? note 9: among 10 bits of the program memory address assigned by dal instruction, the lower rank of 4 bits become indirect addressing based on the content of general register. dal instruction executing time is 80 s (2 machine cycles). note 10: mvgs instruction executing time is 80 s (2 machine cycles).
TC9318AFAG/afbg 2006-07-27 17 i/o map all ports in the device are expressed by matrix of four input and output instruction (out1~2 instructions, in1~2 instructions) and 4 bits of code no. c. assignment of these ports is indicated previously as i/o map. in the i/o map, port names treated in the execution of each input and output instruction are assigned horizontally, while code no. of port are assigned vertically. g-register and data register are also treated as port. the out1~2 instructions are assigned to output port, and in1~2 instructions are assigned to input port. note 11: the port indicated with oblique line on i/o map is a port not existing in the device. in the execution of output instruction, when data is output to the non-existing output port, no effect is given to the content of other port or data memory. when non-existing input port is designated during the execution of input instruction, the content read into the data memory becomes ?1?. note 12: among the output ports on i/o map, * marked port is unused port. the data output here becomes ?don?t care?. note 13: regarding the content of port expressed in 4 bits, y1 corresponds to the least significant of the data of data memory, and y8 to the most significant bit. each port assigned by four input and output instruction and code no. c is coded as follows: (example) the g-register is set by out1 instruction wite code ?f?. therefore, the notation is ? l1f?.
TC9318AFAG/afbg 2006-07-27 18 i/o map l1 l2 k1 k2 out1 out2 in1 in2 i/o code y1 y2 y4 y8 y1 y2 y4 y8 y1 y2 y4 y8 y1 y2 y4 y8 if offset a/d control if control a/d data 0 hf + 1 ? 1 fm ad sel0 ad sel1 ref sel0 ref sel1 busy manual over 1 ad0 ad1 ad2 ad3 programmable counter a/d control if data a/d data 1 p0 p1 p2 p3 sta dcref on ad1 on ad2 on f0 f1 f2 f3 ad4 ad5 busy 1 programmable counter i/o-1 data if data i/o-1 data 2 p4 p5 p6 p7 ? 0 ? 1 ? 2 ? 3 f4 f5 f6 f7 ? 0 ? 1 ? 2 ? 3 programmable counter i/o-2 data if data i/o-2 data 3 p8 p9 p10 p11 ? 0 ? 1 ? 2 ? 3 f8 f9 f10 f11 ? 0 ? 1 ? 2 ? 3 programmable counter i/o-3 data if data i/o-3 data 4 p12 p13 p14 p15 ? 0 ? 1 * f12 f13 f14 f15 ? 0 ? 1 1 reference select progurammable counter i/o-1 control if data 5 r0 r1 r2 p16 ? 0 ? 1 ? 2 3 f16 f17 f18 f19 if counter control i/o-2 control key input data 6 if/in * * * ? 0 ? 1 ? 2 ? 3 k0 k1 k2 k3 if counter control i/o-3 control unlock in port key scan digit 7 stp sta/ manual g0 g1 ? 0 ? 1 * * f/f enable in 1 ks0 ks1 ks2 1 mute control key return timing key scan input data-0 8 mute i/o pol unlock t0 t1 t2 t3 ks00 ks01 ks02 ks03 do1 control key return timing key scan input data-1 9 unlock reset otc ot hz t4 t5 * ks10 ks11 ks12 ks13 timer reset test data timer key scan input data-2 a 2hz f/f timer #4 #5 2hz f/f 10 hz 100 hz stop f/f ks20 ks21 ks22 ks23 buzr data key scan input data-3 b b0 b1 b2 b3 hold 1 ks30 ks31 ks32 ks33 buzr data data-reg key scan input data-4 c b4 b5 b6 b7 d0 d1 d2 d3 ks40 ks41 ks42 ks43 test data seg data select data-reg key scan input data-5 d #0 #1 #2 #3 s1 s2 s4 s8 d4 d5 d6 d7 ks50 ks51 ks52 ks53 seg-1 data data-reg key scan input data-6 e * buzr on * ckstp mode com1 com2 com3 * d8 d9 d10 d11 ks60 ks61 ks62 ks63 g register seg-2 data data-reg key scan input data-7 cn f g0 g1 g2 g3 com1 com2 com3 * d12 d13 d14 d15 ks70 ks71 ks72 ks73
TC9318AFAG/afbg 2006-07-27 19 connecting crystal oscillator the following diagram shows the connection of the 75 khz crystal oscillator to the device?s crystal oscillator pins (x in , x out ). the oscillation signal is supplied to the clock generator, reference frequency divider, and other sub-systems to generate the various cpu timing signals, reference frequency, and other signals. the power supply for the crystal oscillator circuit is the voltage (v xt = 1.4 v typ.) supplied by the built-in constant voltage circuit. this stabilizes the crystal oscillation and reduces the current consumption. note 14: use a crystal oscillator with a low ci value and with good startup characteristics. system reset the system is reset when a low level is applied to the reset pin, or when the voltage supplied to the v dd pin goes from 0 v to 1.8 v or more (a power on reset). following a system reset, the program starts from address 0 after a standby period of 100 ms. as the power on reset function is typically used, fix the reset pin to the high level. note 15: during a system reset and during the standby period following the reset, the lcd common and segment outputs are fixed at the low level. note 16: after a system reset, the internal ports shown in the following table are fixed at the specified levels. the states of the other ports after a reset are undefined. therefore, initialize the ports in the program when necessary. fixed internal ports ports set to ?0? ports set to ?1? manual bit ( l17) io, pol, unlock bit ( l18) do1 control port ( l19) buzr on bit ( l1e) test port ( l1a, l1d) ckstp mode bit ( l1e) ad control port ( l20, l21) timer port ( k1a) key return select bit ( l2ff) io-1~io-3 io control port ( l25~ l27) reference port ( l15) mute bit ( l18) in if/ bit ( l16) disp off bit ( l2ff)
TC9318AFAG/afbg 2006-07-27 20 backup modes to enter the three backup modes, execute the ckstp or wait instruction. 1. clock stop mode clock stop mode halts the system and maintains the internal state of the system immediately prior to halting. during a halt, the system is maintained with low current consumption (10 a or below, at v dd = 3.0 v). in clock stop mode, the crystal oscillator halts and the output ports and lcd display output pins are all automatically set to the low level or the off state. the supply voltage can be reduced to 1.0 v. when the ckstp instruction is executed, execution halts at the address of the ckstp instruction. therefore, execution starts again from the next instruction when clock stop mode is released (after a standby period of around 100 ms). (1) setting clock stop mode clock stop mode can be set to one of two modes. the ckstp bit determines which of the two modes is set. use the out2 instruction with the operand [c n = 7h] to access this bit. 1) mode-0 in mode 0, executing the ckstp instruction when the hold pin is low enters clock stop mode. executing the ckstp instruction when the hold pin is high is equivalent to executing a noop instruction. 2) mode-1 in mode 1, executing the ckstp instruction enters clock stop mode regardless of the level of the hold pin. note 17: the pll turns off during execution of the ckstp instruction. (2) releasing clock stop mode 1) mode-0 in mode 0, clock stop mode is released when the hold pin goes to high, or by a change in the input state of any i/o port 1 pin (p1-0~p1-3) set as an input port. 2) mode-1 in mode 1, clock stop mode is released by a change in the input state of the hold pin or in the input state of any i/o port 1 pin (p1-0~p1-3) set as an input port.
TC9318AFAG/afbg 2006-07-27 21 (3) clock stop mode timing 1) mode-0 (executing the ckstp instruction while the hold pin input is low sets the device to clock stop mode.) 2) mode-1 (executing the ckstp instruction always sets the device to clock stop mode.) (4) circuit example (mode-0) example of backup circuit using battery example of backup circuit using capacitor
TC9318AFAG/afbg 2006-07-27 22 2. wait mode wait mode halts the system and maintains, with reduced current consumption, the internal state of the system immediately prior to halting. two wait modes are available: ?soft wait? and ?hard wait?. when the wait instruction is executed, execution halts at the address of the wait instruction. therefore, when wait mode is released, execution starts again from the next instruction without delaying for the standby time. (1) soft wait mode executing the wait instruction with the operand [p = 0h] stops only the cpu inside the device. in this mode, the crystal oscillator, display circuit, and other circuitry continue to operate normally. using soft wait mode in the program for clock functions reduces the current consumed during clock operation. note 18: the current consumption depends on the program. (2) hard wait mode executing the wait instruction with the operand [p = 1h] stops all operation other than the crystal oscillator. this reduces current consumption still further than soft wait mode. in this state, the cpu and display circuits are halted, and the lcd display output pins are all automatically fixed at the low level. (15 a typ. at v dd = 3 v) (3) setting wait mode executing the wait instruction always sets wait mode. note 19: in hard wait mode, the pll turns off, while in soft wait mode, the pll does not turn off. accordingly, before setting a soft wait, turn the pll off by software. (4) wait mode release conditions wait mode is released by the following conditions. 1) at a change in the input state of the hold pin 2) when a high level is input to a key input pin (k0~k3) (note 20: depends on the key input mode) 3) when the 2 hz timer flip-flop is set to ?1?. (in soft wait mode only) 4) at a change in the input state of an i/o-1 port (p1-0~p1-3) set as an input port 3. hold input port the hold pin can be used as an input port. executing the in1 instruction with the operand [c n = bh] reads the data input from this bit to data memory. when setting clock stop mode, always access this port prior to executing the ckstp instruction. note that if the ckstp instruction is executed without first accessing this port, the device may not enter clock stop mode.
TC9318AFAG/afbg 2006-07-27 23 programmable counter the programmable counter block consists of a 2-modulus prescaler, 4 bit and 13 bit programmable counters, and the ports used to control the block. the programmable counters can be turned on and off by the contents of the reference ports. 1. programmable counter control ports these ports control the divisor, division method, and the if correction (if offset) for the fm band. access the division method and the if offset using the out1 instruction with the operand [c n = 0h]. access the divisor settings using the out1 instruction with the operands [c n = 1h~5h]. set the divisor by writing to bits p0~p16. when the programmable counter data (p16) is set, all the data from p0 to p16 are updated. therefore, always access p16 to set the data, even when changing only a portion of the data. and the reference frequency is set at the same time. 2. setting division method the hf and fm bits select the pulse swallow or direct division method. as the following table shows, there are four methods. select the appropriate method in accordance with the frequency band used. mode hf fm division method example of reception band operating frequency range input pin divisior (note 20) lf 0 0 direct division method mw/lw 0.5~12 mhz hf 1 0 sw 1.0~45 mhz am in fm 0 1 (1/15 or 1/16) pulse swallow method fm 40~130 mhz n vhf 1 1 1/2 (1/15 or 1/16) pulse swallow method vhf 50~230 mhz fm in 2n note 21: n indicates the programmed divisor.
TC9318AFAG/afbg 2006-07-27 24 3. if correction function for fm band when the pulse swallow method is selected, the ? if 1 ports allow the actual divisor to be varied by 1 without changing the programmed divisor. this can be used for if offset in fm. when the direct division method is selected, the if offset function does not operate. ? if + 1 ? if ? 1 divisor (at fm h ) divisor (at fm l , hf) 0 0 2 ? n n 0 1 2 ? (n ? 1) n ? 1 1 0 2 ? (n + 1) n + 1 1 1 prohibited prohibited 4. setting divisor set the divisor of the programmable counter as a binary value in bits p0~p16. ? pulse swallow method (17 bits) ? direct division method (13 bits) note 22: in case of direct dividing mode, p ~p3 ( l11) data be comes unrelated and p4 port becomes lsb. note 23: in vhf mode, the divisor is double the programmed divisor. 5. programmable counter circuit structure ? pulse swallow method circuit structure the programmable counter circuit is made up of a 1/15 or 1/16 2-modulus prescaler, a 4 bit swallow counter, and a 13 bit binary programmable counter. in fm h mode, a 1/2 divider is inserted before the prescaler.
TC9318AFAG/afbg 2006-07-27 25 ? direct division method circuit structure this circuit bypasses the prescaler and uses the 13 bit programmable counter. note 24: the fm in and am in pins incorporate amps. connecting a capacitor permits low-amplitude operation. the input pins not selected by the division method are pulled down. in pll off mode (set by the reference port), the inputs are also pulled down. reference frequency divider the reference frequency divider divides the frequency of the external 75 khz crystal oscillator to generate seven pll reference frequency signals: 1 khz, 3 khz, 3.125 khz, 5 khz, 6.25 khz, 12.5 khz, and 25 khz. the frequency signal is selected by the reference port data. the selected signal is supplied as the reference frequency for the phase comparator, which is described next. the pll is turned on or off by the reference port setting. 1. reference port the reference port is an internal port used to select the reference frequency signal (from the seven frequencies). use the out1 instruction with the operand [c n = 5h] ( l15) to access this port. when the contents of the reference port are all ?1?, the programmable counter, if counter, and reference counter are halted, and the pll is turned off. when the reference port are set, the frequency division data of the programmable counter are updated. therefore, in case of setting reference port, it is neccesary to set the frequency division data of the programmable counter.
TC9318AFAG/afbg 2006-07-27 26 phase comparator, clock detection port the phase comparator compares the reference frequency signal supplied by the reference frequency divider with the divided signal output by the programmable counter, and outputs the phase difference. the output of the phase comparator is used to control the vco via the low pass filter so as to eliminate the frequency and phase difference between the two signals. data are output from the phase comparator to the tristate buffered do1 and do2 pins in parallel. this enables the optimal filter constants to be designed for both fm and am bands. also, the do1 pin can be set for general-purpose output by the do1 control port. the do1 pin can also be set to high impedance. by using the do1 and do2 pins, pll loop characteristics, such as the lockup time, can be improved. the lock detection port can be used to detect the pll lock state. 1. do2 control port, unlock detection port
TC9318AFAG/afbg 2006-07-27 27 the otc, ot, and hz control bits of the do1 control port set the do1 output pin as a general-purpose output port, and control whether do1 goes to high impedance instead of outputting the phase difference. set these bits to the required values by program. when the phase is approximately 180, the unlock flip-flop bit detects the phase difference between the divided output of the programmable counter and the reference frequency. if the phase difference does not match, that is, if the pll is unlocked, the unlock flip-flop is set. also, setting the unlock reset bit to ?1? resets the unlock flip-flop. to detect the phase difference during the reference voltage period, reset the unlock flip-flop, then access the unlock flip-flop after waiting for a time longer than the reference frequency period. an enable bit is supplied for this purpose. after confirming that the unlock enable bit is set to ?1?, access the unlock flip-flop. setting the unlock reset bit to ?1? resets the unlock enable bit. use the out1 and in1 instructions with the operand [c n = 7 or 9h] to control these ports, and to load data. note 26: when the pll is off, the do output is set to high impedance. however, when do1 is set as an output port (ot output), the data are output from the port without change. 2. phase comparator, unlock port timing
TC9318AFAG/afbg 2006-07-27 28 3. phase comparator, unlock port circuit structure note 27: the filter circuit shown in the above figure is an example for reference, and the actual circuit should be investigated and designed conforming to the system band construction and the required characteristics. when setting different filter constants for each band when using the same low pass filter for both bands (set do1 to high impedance to switch the filter constant)
TC9318AFAG/afbg 2006-07-27 29 if counter this is a 20 bit general-purpose intermediate frequency (if) counter used for such purposes as counting the fm or am intermediate frequency during auto-tuning or detecting the auto-stop signal. the if counter block consists of a 20 bit binary counter and a control port. 1. if counter control port, data port
TC9318AFAG/afbg 2006-07-27 30 note 28: when the pll is off, the if counter is disabled. (1) if counter auto mode (frequency measuring) to use if counter auto mode, use the in if/ switching bit to set the if pin to if input. set the gate time based on the if input frequency band. set the manual bit to ?0? and the stp sta/ bit to ?1? to start the if counter. as a result, the clock for the 20 bit binary counter is input from the if pin for the specified gate time. the if counter counts the number of input pulses. to determine when the if counter has finished counting, check the busy bit. when the count equals or exceeds 2 20 input pulses, the over bit is set to ?1?. to measure the frequency input to the if input pin, load the f0~f19 if data when the busy and over bits are both ?0?. (2) if counter manual mode (frequency measuring) use manual mode to measure the frequency using the if frequency by controlling the gate time using an internal time base (eg, 10 hz). perform the same if counter input settings as for auto mode, and set the g0 and g1 bits to other than ?1?. set the manual bit to ?1? and the stp sta/ bit to ?1? to start the count. setting the stp sta/ bit to ?0? terminates the count and loads the data in binary format.
TC9318AFAG/afbg 2006-07-27 31 2. if counter circuit structure the if counter block consists of an input amp, a gate timer control circuit, and a 20 bit binary counter. when the pll is turned off, the if counter is off. however, the block can still operate when set as a timer/counter. note 29: the if in1 pins incorporate amps. connecting the pins via a capacitor permits low-amplitude operation. frequency measuring auto mode
TC9318AFAG/afbg 2006-07-27 32 lcd driver the lcd driver has a 1/3 duty and 1/2 bias drive (frame frequency is 83 hz). the common outputs are at three voltages: v lcd , v lcd /2v ee , and gnd. the segment outputs are at two voltages: v lcd and gnd. the combination of three common outputs and 23 segment outputs enables the lcd driver to drive a maximum of 69 segments. lcd driver segment output pins s16~s23 are also used for the key return timing signals for loading key matrix data. the lcd driver incorporates a constant voltage circuit (v ee = 1.5 v) and voltage double boosting circuit (v lcd = 3.0 v) for the display. this maintains an even lcd contrast regardless of fluctuations in the supply voltage. 1. lcd driver port * : don?t care note 30: the segment data control whether or not the segments corresponding to the common and segment outputs are lit. note 31: the disp off bit is set to ?1? at a system reset and at release of clock stop mode.
TC9318AFAG/afbg 2006-07-27 33 the lcd driver control ports consist of a segment data selection port and segment data ports. use the out2 instruction with the operand [c n = dh~fh] to access these ports. set the lcd driver segment data using the segment data ports ( l2e, l2f). set the segment data port to ?0? to turn the lcd display off and set ?1? to turn the lcd display on. when fh is specified for the segment data select port, the disp off and key return select bits are selected as segment-2 data ( l2ff). the disp off bit can turn the whole lcd display off without setting segment data. setting this bit to ?1? outputs the de-selected waveform from the common outputs and turns off the entire lcd display. the segment contents are preserved. setting the disp off bit back to ?0? displays the previous lcd screen. segment data can be rewritten during disp off. after a reset, and after ckstp execution, the disp off bit is set to ?1?. the key return select bit allows an external power supply to be used. this is useful for changing the lcd drive voltage. the data are set according to the segment data select port ( l2d). segment output pins s16~s23 are also used for the key return timing signals for loading key matrix data. at the timing for loading the key matrix data, the segment output is set to the gnd level. 2. lcd driver circuit structure
TC9318AFAG/afbg 2006-07-27 34 3. lcd driver timing chart the following chart shows the timing for the com1~com3 output waveforms and the eight types of segment output waveform.
TC9318AFAG/afbg 2006-07-27 35 4. example of timing chart for lcd driver output data and loading key data the following chart shows the output waveform timing and key return data loading timing when the common and segment outputs are allocated as shown. the voltages output in the lcd driver waveform are v lcd , gnd, and an intermediate voltage halfway between the two. pins s16~s23 output the key return signals at the timing for switching between these levels. during key return data loading, the segment outputs are at the v lcd level for 80 s. note 32: at ckstp instruction execution or at a system reset, the common and segment pins go to the low level.
TC9318AFAG/afbg 2006-07-27 36 key input, key scan timing the following are the two basic methods of loading key data. select the appropriate method for the system. 1. key control port, key scan data in case of setting data ?1? to the key return select bit, the segment output is the output timing as shown below. in case of setting ?0? to the bit, the key return signal don?t outputted. the key return select bit is the bit of setting the loading key method. the data is loading by the digit timing of the key return signals from the key scan digit port. the key data by key scan is input to the key scan input data port. by accessing this port, the key data is loading to the data memory.
TC9318AFAG/afbg 2006-07-27 37 2. key scan circuit structure the key input block of the key scan circuit consist of key input circuit, latch circuit for loading key data. the key return timing output block consist of lcd segment driver, decoder and counter block.
TC9318AFAG/afbg 2006-07-27 38 3. key matrix structure the key matrix can have one of the following two structures. (1) key data loading by software when loading key data by software, use a key matrix with the above structure. for this method, set to high the key timing output port data ( l28, l29) for the key line to be loaded. then to determine which keys are pressed, load the key input port ( k26) data to memory. at this timing, set the other key timing output ports to low. if the corresponding key is pressed, the key input port data are ?1?; if not pressed, ?0?. this structure allows up to 24 (4 (6)) keys to be used. the key data can be loaded at high speed. also, as the structure has a high resistance in the n channel fets of pins t0~t5, there is no need to use a diode to prevent reverse current flow caused by, for example, multiple keys being pressed. when loading key data by software, set to ?0? to the key return select bit. note 33: in case of structuring a diode jumper, the key input voltage is input/ow voltage of vf ( ? 0.6 v) voltage of diode. it?s necessary the diode for diode jumper malfunction prevention to structure of double push of a key. the diode is unnecessary when there is no diode jumper necessity. therefore, key input thre-shold level is set up low. in the mode structure, when executing a wait instruction (in wait mode), applying a high level to a key input pin releases wait mode and restarts the cpu.
TC9318AFAG/afbg 2006-07-27 39 (2) key data loading by lcd segment output (hardware scan) note 34: a key matrix to 4 8 = 32 can be created. note 35: the same key line cannot contain both push keys and diode jumpers or alternate switches. place diode jumpers or alternate switches on the key return signal output side. when loading key data by lcd segment output, use a key matrix with the above structure. in this structure, it?s necessary for a diode to prevent reverse current flow and be careful the direction of diode and diode jumper. the v lcd and gnd potential are outputted from a segment pin at the timing of changing lcd output. when loading key data, loading of segment signal becomes to the gnd potential and key input pin is pulled up to the v dd potential at changing lcd output. at this timing, if key is not pressed (or without diode jumper), key input pin is inputted v dd potential; if key is pressed (or with diode jumper), key input pin is inputted one diode potential ( ? k26) is loaded to the data memory.
TC9318AFAG/afbg 2006-07-27 40 key return timing output port (t0~t5) t0~t5 are exclusive output port of 6 bits with n-channel load resostors. normally, t0~t5 is used as output of key return timing signal for key matrix. this output port is made access by out2 instruction designated the operand part [c n = 8 or 9] ( l28 or l29). note 36: during the clock stop mode (excusing ckstp instruction), t0~t3 and ot0, ot1 output is fixed at ?l? level automatically, but the content of port is held on the previous data. buzzer output (buzr) the buzzer output is used for such purposes as audible alarms or to issue confirmation beeps for key-presses or tuning scan mode. the buzzer frequency can be set as desired. 50% duty waveform is output. 1. buzr data port the buzr output can also be used as the p3-1 i/o port. to switch the p3-1 output to buzr output, set ?1? to buzr on bit. it is necessary to set of the buzr data before setting the buzron bit to ?1?. setting the data to buzr data port ( l1c), the buzr data is transferred to the buzr data latch, and then changed buzr frequency. the buzr output has a frequency of 75 khz divided by 2 n (n = b0~b7). the b0~b7 setting range and frequency range is 2 < = n < = 255. this can be expressed as a formula as follows. khz 18.75 2 2 khz 75 = < = ? buzr < = z 147 255 2 khz 75 = set b0~b7 to 1 or 0 to use the pin for ot1 output. the output states are as follows. b7 b6 b5 b4 b3 b2 b1 b0 ot1 output 0 0 0 0 0 0 0 0 low level output 0 0 0 0 0 0 0 1 high level output to set the above data, use the out1 instruction with the operand [c n = bh~eh]. note 37: after a system reset, the buzr data port is reset to ?0?.
TC9318AFAG/afbg 2006-07-27 41 2. buzr circuit structure the buzzer circuit consists of an 8 bit programmable counter, a 1/2 counter, a buzzer latch, and a buzzer data port. 3. buzr output timing (buzr on bit is ?1?)
TC9318AFAG/afbg 2006-07-27 42 a/d converter the 2 channel/6 bit resolution a/d converter is used for such purposes as measuring field intensity and battery voltage. 1. a/d converter control port, dare port
TC9318AFAG/afbg 2006-07-27 43 the a/d converter is a 6 bit resolution. the reference voltage of a/d conversion can select the external voltage (dc-ref terminal), supply voltage and 1.5 v constant voltage (v ee ). the a/d conversion input is a multiplex method of 2-channel external input terminal (ad in1 , ad in2 terminal) and also switchable to 1.5 v constant voltage (v ee ) as well. normally field strength and volume level are measured by selecting external voltage or supply voltage as reference voltage and a/d converting the external input level. the a/d converter can also measure battery and supply voltages. it outputs a battery singal or performes control for backup mode when battery voltage or supply voltage drop. the a/d converter does a/d conversion whenever setting ?1? to sta bit and the conversion will complete after 7 machine cycles (280 s). whether a/d conversion is completed can be judged by referring to busy bit. after a/d conversion is completed, the data will be loaded into data memory. these controls are accessed when out2/in2 instruction designated [c n = 0h, 1h] in the operand is executed. 2. a/d converter circuit configuration the a/d converter consists of: 6 bit d/a converter, comparator, a/d conversion latch, control circuit, a/d data port and 1.5 v constant voltage circuit (supply for lcd driver). the a/d converter will latch the data to a/d conversion data latch sequentially by means of the 6 bit sequential comparison method. note 38: the dc-ref terminal is built-in an amplifier and is high impedance input. note 39: during a/d conversion, a proper data is not obtainable even if referring to the a/d conversion data. therefore, make sure to confirm that the conversion has finished by referring to the a/d operation monitor.
TC9318AFAG/afbg 2006-07-27 44 input and output port 1. i/o port p1-0~p1-3 ( kl22), p2-0~p2-3 ( kl23), p3-0~p3-1 ( kl24) i/o port (p1-0~p1-3, p2-0~p2-3) are 4 bits and (p3-0~p3-1) are 2 bits cmos type, and is capable of making input and output setting with each bit. input and output setting of i/o port is made by the content of i/o control internal port. setting to input port can be made by setting ?0? to the bit of i/o control port corresponding to i/o port, while setting to output port can be made by setting ?1? in the same. in case of input port setting, the present data input i/o port is read into the data memory by the execution of in2 instruction designated the operand part [c n = 2~4] ( k22, k23, k24). in case of output port setting, output condition of i/o port is controlled execution of out2 instruction designated the operand part [c n = 2~4] ( l22, l23, l24). i/o port 2~3 are also used for a/d converter and buzr output. after system reset, these ports are set to i/o port. note 40: i/o control port is made access by out2 instruction designated the operand part [c n = 5~7]. note 41: during the clock stop mode (executing ckstp instruction), output condition of i/o port set at output mode is all fixed at ?l? level automatically, but each output latch holds on the data just before the clock stop mode. note 42: at the time of changing input condition of p1-0~p1-3 port set at input mode, it cancels the execution of wait and ckstp instructions and makes the operation restart. in case of setting ?1? to i/o bit of mute control port, mute port is made to set to ?1? compulsorily by the same condition.
TC9318AFAG/afbg 2006-07-27 45 register port the g-register (mentioned in the cpu description) and the data register are treated as internal ports. 1. g-register ( l1f) this register sets the row address (d r = 4h~fh) in data memory for the mvgd and mvgs instructions. to access this register, execute the out1 instruction with the operand [c n = fh]. note 43: the register value is only used when the mvgd or mvgs instructions are executed. the register is ignored for other instructions. note 44: setting data 0h~fh in the g register allows all the data memory row addresses to be specified indirectly. (d r = 0h~fh) 2. data register ( k1c~ k1f) this is a 16 bit register to load the program memory data when the dal instruction is executed. the contents of the register are read to data memory in units of 4 bits by the in1 instruction with the operands [c n = ch~fh]. this register can be used for such purposes as lcd segment decoding, radio band edge data, or for coefficient data for binary-to-bcd conversion.
TC9318AFAG/afbg 2006-07-27 46 timer and cpu stop function the timer has 100 hz, 10 hz, and 2 hz flip-flop bits. these are used for counting operations, such as for a clock or tuning scan mode. the cpu stop function uses a voltage detector circuit to shut down the cpu when the v dd voltage applied to the cpu falls below 1.5 v. this prevents cpu malfunction. 1. timer port, stop flip-flop bit to access the timer port and the stop flip-flop bit, execute the out1/in1 instruction with the operand [c n = ah]. 2. timer port timing the 2 hz timer flip-flop is set by the 2 hz (500 ms ) signal, and reset by setting the reset port 2 hz flip-flop to ?1?. this bit can normally be used for the clock count. the 2 hz timer flip-flop is only reset by the 2 hz flip-flop in the reset port. therefore, if the flip-flop is not reset within 500 ms, the next count is missed and the correct time is not obtained. t < 500 ms the 10 hz and 100 hz timers are output to the 10 hz and 100 hz bits with a cycle of 100 ms and 10 ms, respectively, and a pulse duty of 50%. whenever the reset port timer bit is set to ?1?, counters below 1 khz are reset.
TC9318AFAG/afbg 2006-07-27 47 3. cpu stop function, stop flip-flop bit the stop flip-flop bit is set to ?1? when the v dd voltage applied to the cpu falls below 1.5 v. this prevents cpu malfunction by shutting down the cpu. when a voltage of 1.5 v or less is applied to the v dd pin, the program counter stops and instruction execution ceases in the cpu. when a voltage higher than 1.5 v is again applied to the v dd pin, the cpu starts up again. as the cpu was shut down, the clock and other timings are no longer valid. use the stop flip-flop to test whether the cpu stop function operated. perform initialization or clock correction if required. the stop flip-flop bit is reset to ?0? whenever the reset port 2 hz flip-flop is set to ?1?. note 45: after a system reset or execution of the ckstp instruction, the timer port and the stop flip-flop are reset to ?0?. note 46: if the v dd voltage falls below 1.5 v when clock-stop mode is set, the ckstp instruction cannot be executed. be careful with the supply voltage timing, for example, when the radio is off. note 47: the key scan input data immediately after restarting the cpu are undefined. note 48: if the interal test port from #0 to #3 bit ( l1d) is set to ?1?, the cpu stop function is inhibited.
TC9318AFAG/afbg 2006-07-27 48 mute output this is a 1 bit cmos-format output-only port for muting control. 1. mute port access the mute port by executing the out1 instruction with the operand [c n = 8h]. the mute output is used for muting control. at such times as switching bands using the i/o port 1 input, the mute bit can be set to ?1?. when using the i/o port 1 input to switch bands (using a slide switch, for example), this function prevents linear circuit switching noise. this control is based on i/o bit values. the pol bit sets the mute output logic. the mute output can also control muting using the phase difference output. a pulse is output to indicate when the pll is not locked. by connecting an external low-pass filter to the mute output, the output can be used as a mute signal. use the unlock bit to perform selection.
TC9318AFAG/afbg 2006-07-27 49 2. mute output structure and timing note 50: when pol bit = 0 note 51: when using the phase difference output by the phase comparator, externally connect a low-pass filter to the mute output. test ports these are internal ports for testing the device?s functions. access the ports by executing the out1 instruction with the operand [c n = ah] or [c n = dh], or the out2 instruction with the operands [c n = ffh]. the ports are normally set to ?0? by software. if the data ?1? is set to test port bit from #0 to #3, the cpu stop function is inhibited and the data ?0? is set, the cpu function is operating. in case of using supply voltage detection externally, set cpu stop function as inhibition. note 52: the ports are reset to ?0? after a system reset.
TC9318AFAG/afbg 2006-07-27 50 absolute maximum ratings (ta = 25c) characteristics symbol rating unit supply voltage v dd ? 0.3~4.0 v input voltage v in ? 0.3~v dd + 0.3 v power dissipation p d 100 mw operating temperature t opr ? 10~60 c storage temperature t stg ? 55~125 c electrical characteristics (unless otherwise noted, ta = 25c, v dd = 3.0 v) characteristics symbol test circuit test condition min typ. max unit range of operating supply voltage v dd ? * 1.8 3.0 3.6 v range of memory retention voltage v hd ? crystal ocillation stopped (ckstp instruction executed) * 1.0 ~ 3.6 v under ordinary operation and pll on operation, no output load fm in = 230 mhz input v dd = 3.0 v ? 7.0 12 i dd1 ? under ordinary operation and pll on operation, no output load fm in = 130 mhz input v dd = 3.0 v ? 6.0 10 ma i dd2 ? under cpu operation only (pll off, display turned on) v dd = 3.0 v ? 40 80 i dd3 ? soft wait mode (crystal oscllator, display circuit operating, cpu stopped, pll off) ? 25 50 operating current i dd4 ? hard wait mode (crystal oscillator operating only) ? 15 30 a memory retention current i hd ? crystal oscillation stopped (ckstp instruction executed) ? 0.1 10 a crystal oscillation frequency f xt ? * ? 75 ? khz crystal oscillation startup time t st ? crystal oscillation f xt = 75 khz ? ? 1.0 s note 53: for conditions marked by an asterisk ( * ), guaranteed when v dd = 1.8~3.6 v, ta = ? 10~60c. voltage doubler circuit characteristics symbol test circuit test condition min typ. max unit voltage doubler reference voltage v ee ? gnd reference (v ee ) 1.3 1.5 1.7 v constant voltage temperature characteristics d v ? gnd reference (v ee ) ? ? 5 ? mv/c voltage doubler boosting voltage v lcd ? gnd reference (v lcd ) 2.6 3.0 3.4 v
TC9318AFAG/afbg 2006-07-27 51 operating frequency ranges for programmable counter and if counter characteristics symbol test circuit test condition min typ. max unit fm in (vhf mode) f vhf ? sine wave input when v in = 0.2 v p-p * 50 ~ 230 mhz fm in (fm mode) f fm ? sine wave input when v in = 0.2 v p-p * 40 ~ 130 mhz am in (hf mode) f hl ? sine wave input when v in = 0.2 v p-p * 1 ~ 45 mhz am in (lf mode) f lf ? sine wave input when v in = 0.2 v p-p * 0.5 ~ 12 mhz if in f if ? sine wave input when v in = 0.2 v p-p * 0.35 ~ 12 mhz input amplitude v in ? fm in , am in , if in input * 0.2 ~ v dd ? 0.8 v p-p note 53: for conditions marked by an asterisk ( * ), guaranteed when v dd = 1.8~3.6 v, ta = ? 10~60c. lcd common output/segment output (com1~com3, s 1 ~s 23 ) characteristics symbol test circuit test condition min typ. max unit ?h? level i oh1 ? v lcd = 3 v, v oh = 2.7 v ? 0.5 1.0 ? output current ?l? level i ol1 ? v lcd = 3 v, v ol = 0.3 v 0.5 1.0 ? ma output voltage 1/2 level v bs ? no load 1.3 1.5 1.7 v hold input port characteristics symbol test circuit test condition min typ. max unit input leak current i li ? v ih = 3.0 v, v il = 0 v ? ? 1.0 a ?h? level v ih1 ? ? 2.4 ~ 3.0 input voltage ?l? level v il1 ? ? 0 ~ 1.2 v a/d converter (a/d in1 , a/d in2 , dc-ref) characteristics symbol test circuit test condition min typ. max unit analog input voltage range v ad ? ad in1 , ad in2 0 ~ v dd v analog reference voltage range v ref ? dc-ref, v dd = 2.0~3.6 v 1.0 ~ v dd 0.9 v resolution v res ? ? ? 6.0 D bit conversion total error ? ? v dd = 2.0~3.6 v ? 1.0 4.0 lsb analog input leak i li ? v ih = 3.0 v, v il = 0 v (ad in1 , ad in2 , dc-ref) ? ? 1.0 a
TC9318AFAG/afbg 2006-07-27 52 key input port (k 0 ~k 3 ) characteristics symbol test circuit test condition min typ. max unit n-ch/p-ch input resistance r in1 ? ? 75 150 300 k ? ?h? level v ih2 ? when input with pull-down resistance 1.8 ~ 3.0 input voltage ?l? level v il2 ? when input with pull-down resistance 0 ~ 0.3 v ?h? level v ih3 ? when input with pull-up resistance 2.7 ~ 3.0 input voltage ?l? level v il3 ? when input with pull-up resistance 0 ~ 1.2 v input leak current i li ? when input resistance off, v ih = 3.0 v, v il = 0 v ? ? 1.0 a timing output port (t0~t5) characteristics symbol test circuit test condition min typ. max unit ?h? level i oh1 ? v oh = 2.7 v ? 0.5 ? 1.0 ? output current ?l? level i ol1 ? v ol = 0.3 v, use lcd key-return mode 0.5 1.0 ? ma n-ch load resistance r on ? no used lcd key-return mode 75 150 300 k ? do1/ot, do2 output; mute output characteristics symbol test circuit test condition min typ. max unit ?h? level i oh1 ? v oh = 2.7 v ? 0.5 ? 1.0 ? output current ?l? level i ol1 ? v ol = 0.3 v 0.5 1.0 ? ma output off leak current i tl ? v tlh = 3.0 v, v tll = 0 v (do1, do2) ? ? 100 na general-purpose i/o ports (p1-0~p3-1) characteristics symbol test circuit test condition min typ. max unit ?h? level i oh1 ? v oh = 2.7 v ? 0.5 ? 1.0 ? output current ?l? level i ol1 ? v ol = 0.3 v 0.5 1.0 ? ma input leak current i li ? v ih = 3.0 v, v il = 0 v ? ? 1.0 a ?h? level v ih4 ? ? 2.4 ~ 3.0 input voltage ?l? level v il4 ? ? 0 ~ 0.6 v in, reset input port characteristics symbol test circuit test condition min typ. max unit input leak current i li ? v ih = 3.0 v, v il = 0 v ? ? 1.0 a ?h? level v ih4 ? ? 2.4 ~ 3.0 input voltage ?l? level v il4 ? ? 0 ~ 0.6 v
TC9318AFAG/afbg 2006-07-27 53 others characteristics symbol test circuit test condition min typ. max unit input pull-down resistance r in2 ? (test) 25 50 100 k ? x in amp feedback resistance r fxt ? (x in -x out ) ? 20 ? m ? x out output resistance r out ? (x out ) ? 3 ? k ? r fin1 ? (fm in , am in ) 150 300 600 input amp feedback resistance r fin2 ? (if in ) 500 1000 2000 k ? voltage used to detect supply voltage drop v stp ? (v dd ) 1.35 1.55 1.75 v supply voltage drop detection temperature characteristics d s ? (v dd ) ? ? 2 ? mv/c
TC9318AFAG/afbg 2006-07-27 54 package dimensions weight: 0.32 g (typ.)
TC9318AFAG/afbg 2006-07-27 55 package dimensions note: pd-plated leads. weight: 0.45 g (typ.)
TC9318AFAG/afbg 2006-07-27 56 restrictions on product use 060116eb a ? the information contained herein is subject to change without notice. 021023_d ? toshiba is continually working to improve the quality and reliability of its products. nevertheless, semiconductor devices in general can malfunction or fail due to their inherent electrical sensitivity and vulnerability to physical stress. it is the responsibility of the buyer, when utilizi ng toshiba products, to comply with the standards of safety in making a safe design for the entire system, and to avoid situations in which a malfunction or failure of such toshiba products could cause loss of human life, bodily injury or damage to property. in developing your designs, please ensure that toshiba products are used within specified operating ranges as set forth in the most recent toshiba products specifications. also, please keep in mind the precautions and conditions set forth in the ?handli ng guide for semiconductor devices,? or ?toshiba semiconductor reliability handbook? etc. 021023_a ? the toshiba products listed in this document are intended for usage in general electronics applications (computer, personal equipment, office equipment, measuring equipment, industrial robotics, domestic appliances, etc.). these toshiba products are neither intended nor warranted for usage in equipment that requires extraordinarily high quality and/or reliability or a malfunction or failure of which may cause loss of human life or bodily injury (?unintended usage?). unintended usage include atomic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, medical instruments, all types of safety devices, etc. unintended usage of toshiba products listed in this document shall be made at the customer?s own risk. 021023_b ? the products described in this document shall not be used or embedded to any downstream products of which manufacture, use and/or sale are prohibited under any applicable laws and regulations. 060106_q ? the information contained herein is presented only as a guide for the applications of our products. no responsibility is assumed by toshiba for any infringements of patents or other rights of the third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of toshiba or others. 021023_c ? the products described in this document are subject to the foreign exchange and foreign trade laws. 021023_e about solderability, following conditions were confirmed ? solderability (1) use of sn-37pb solder bath solder bath temperature = 230c dipping time = 5 seconds the number of times = once use of r-type flux (2) use of sn-3.0ag-0.5cu solder bath solder bath temperature = 245c dipping time = 5 seconds the number of times = once use of r-type flux


▲Up To Search▲   

 
Price & Availability of TC9318AFAG

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X